#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
判断输入年份是否为闰年
'''
import types
def isLeapYear(year):
    if type(year) is types.StringType: return None
    if (year % 4 == 0 and year % 100 != 0) or (year % 4 == 0 and year % 100 == 0):
        return 'The year %d is a leap year' % year
    else:
        return 'The year %d is not a leap year'

if __name__ == '__main__':
    print isLeapYear(2000)
